<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------

return [
    // 缓存配置为复合类型
    'type'  =>  'complex',
    'default'	=>	[
        'type'	=>	'file',
        // 全局缓存有效期（0为永久有效）
        'expire'=>  0,
        // 缓存前缀
        'prefix'=>  env('cache_prefix'),
        // 缓存目录
        'path'  =>  env('cache_path'),
    ],
    'redis'	=>	[
        // 驱动方式
        'type'     => 'redis',
        // 缓存前缀
        'prefix'   => env('cache_prefix'),
        // 缓存有效期 0表示永久缓存
        'expire'   => 0,
        'host'     => env('redis_host'),
        'password' => env('redis_password'),
        'port'     => env('redis_port'),
    ],

    //h5
    'store_h5_redis'	=>	[
        // 驱动方式
        'type'     => 'redis',
        // 缓存前缀
        'prefix'   => 'store_h5:',
        // 缓存有效期 0表示永久缓存
        'expire'   => 0,
        'host'     => env('redis_host'),
        'password' => env('redis_password'),
        'port'     => env('redis_port'),
    ],

    //h5
    'book_redis'	=>	[
        // 驱动方式
        'type'     => 'redis',
        // 缓存前缀
        'prefix'   => 'app_cloud:',
        // 缓存有效期 0表示永久缓存
        'expire'   => 0,
        'host'     => env('redis_host'),
        'password' => env('redis_password'),
        'port'     => env('redis_port'),
    ],


];
